<template>
	<view class="ikz-apply">
    <ikz-loading  :css-data="loading_css"></ikz-loading>
    <view class="ikz-over">
      <image class="ikz-over-img" src="/static/fail.png"></image>
      <view class="ikz-over-title">
        审核失败
      </view>
      <view class="ikz-over-tips">
        {{show_info}}
      </view>
      <view class="ikz-over-btn" @click="apply">
        重新申请
      </view>
    </view>
	</view>
</template>

<script>
  import ikzLoading from '@/pages/Component/Public/Loading/loading.vue';
  var app = getApp();
  import ikz from '@/pages/Common/tools.js';
  export default {
    components: {
      ikzLoading
    },
    data() {
      return {
        loading_css:{
          display:'flex',
        },
        show_info:''
       }
    },
    onLoad(options){
      this.failInfo()
    },
    created() {
      // var that = this;
      this.loading_css.display = 'none';
    },
    methods: {
      failInfo() {
        var path = '/xyb/user_receive_apply/reject_reason';
        var data = {
        };
        ikz.post(path, data, res => {
          if (res.data.code) {
            this.show_info = res.data.data.reject_reason;
            console.log( this.show_info)
          } else {
            uni.showModal({
              title: '提示',
              content: '服务器繁忙，请稍后再试',
              showCancel: false,
              success: function(res) {}
            });
          }
          // if(that.pull_status){
          // 	this.$emit("change",'pull');
          // }
        });
      },
      
      apply(){
        uni.redirectTo({
          url:'/pages/Component/Module/Receiver/Program/apply/index/index'
        })
      },

    }
  };
</script>

<style scoped>
  page{
    width: 100%;
    height: 100%;
  }
  .ikz-over{
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin-top: 200rpx;
  }
  .ikz-over-img{
    width: 200rpx;
    height: 200rpx;
  }
  .ikz-over-title{
    width: 100%;
    margin-top: 50rpx;
  }
  .ikz-over-tips{
    width: 100%;
    font-size:28rpx;
    color: #888;
    margin-top: 30rpx;
  }
  .ikz-over-btn{
    box-sizing: border-box;
    width: 50%;
    padding: 0px 40rpx;
    height: 100rpx;
    line-height: 100rpx;
    color: #fff;
    border-radius: 50rpx;
    background: linear-gradient(to right, #FBAB7E, #F8C66D);
    margin-top: 50rpx;
  }
</style>
